﻿/****************************************************************************
Copyright (c) 2014-2015 凌惊雪 微信:Lingjingxue 邮箱:lingjingxue@sina.com QQ:271487457

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/

namespace ServerBase.DataBaseRedis
{
    /// <summary>
    /// Redis 服务器分区
    /// 这里的数据 不同服务器存储位置不同
    /// </summary>
    public static partial class RdsTxt
    {
       

        #region DataServer

        //服务器数据
        public const string RdsDataServer = "DataServer";

        #endregion

        #region DataAll

        //服务器数据
        public const string RdsDataAll = "DataAll";

        #endregion

        #region DataGame

        //服务器数据
        public const string RdsDataGame = "DataGame";
        //全局邮件数据
        public const string RdsMailGlobal = "Mail:Global";

        //本服务器上的Puid列表
        public const string RdsGameListPuid = "Game:ListPuid";

        #endregion

        #region ID

        //账户唯一ID
        public const string RdsIdUuid = "Id:Uuid";
        //玩家唯一ID
        public const string RdsIdPuid = "Id:Puid";
        //邮件ID
        public const string RdsIdMail = "Id:Mail";
        //游戏唯一ID
        public const string RdsIdObject = "Id:Object";

        #endregion

        #region Player

        //玩家数据
        public const string RdsPlayerData = "Player:Data";
        //玩家快照数据
        public const string RdsPlayerSnap = "Player:Snap";
        //唯一ID->昵称
        public const string RdsPlayerPuidName = "Player:PuidName";
        //昵称->唯一ID
        public const string RdsPlayerNamePuid = "Player:NamePuid";
        //唯一ID->等级
        public const string RdsPlayerPuidLevel = "Player:PuidLevel";

        #endregion

        #region User

        //账号数据
        public const string RdsUserData = "User:Data";
        //唯一ID->昵称
        public const string RdsUserUuidAccount = "User:UuidAccount";
        //用户在不同服务器的Puid User:Puid:<Uuid> -- ServerId -- Puid
        public const string RdsUserPuid = "User:Puid";

        #endregion

        #region Load 负载

        //服务器负载
        public const string RdsLoadGameSet = "Load:GameSet";
        public const string RdsLoadGameKv = "Load:GameKv";

        #endregion


    }



}